package com.bprogram.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订阅关注表
 * </p>
 *
 * @author cai
 * @since 2023-11-21
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("subscribe")
public class Subscribe implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 关注表id
     */
      @TableId("subscribeId")
    private Long subscribeId;

    /**
     * upid
     */
    @TableField("upId")
    private Long upId;

    /**
     * 粉丝id
     */
    @TableField("fansId")
    private Long fansId;

    /**
     * (1:a关注b（即我的关注），2：b关注a（我的粉丝），3：互为关注，0：默认为0，不存在关联)
     */
    @TableField("follow")
    private String follow;


    /**
     * 关联模块
     */
    @TableField("association")
    private String association;
    /**
     * 创建者id
     */
    @TableField(value = "createId", fill = FieldFill.INSERT)
    private Long createId;

    /**
     * 创建人账号
     */
    @TableField(value = "createCode", fill = FieldFill.INSERT)
    private String createCode;

    /**
     * 创建人姓名
     */
    @TableField(value = "createName", fill = FieldFill.INSERT)
    private String createName;

    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT, insertStrategy = FieldStrategy.IGNORED)
    private LocalDateTime createTime;

    /**
     * 修改人id
     */

    @TableField(value = "updateId", fill = FieldFill.INSERT_UPDATE)
    private Long updateId;

    /**
     * 修改人账号
     */
    @TableField(value = "updateCode", fill = FieldFill.INSERT_UPDATE)
    private String updateCode;

    /**
     * 修改人昵称
     */
    @TableField(value = "updateName", fill = FieldFill.INSERT_UPDATE)
    private String updateName;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private LocalDateTime updateTime;

}
